package day01;

import java.util.Scanner;

public class ZuiDaZhi {
    public static void main(String[] args){
        System.out.println("请输入a的值：");
        int a=new Scanner(System.in).nextInt();

        System.out.println("请输入b的值：");
        int b=new Scanner(System.in).nextInt();


        System.out.println("请输入c的值：");
        int c=new Scanner(System.in).nextInt();

        int max= a>b?a:b;
        max=max>c?max:c;
//int m=a>b ? (a>c ? a:c):(b>c ? b:c);
        System.out.println("a,b,c的最大值是："+max);
    }
}
